home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-08-29 | 1.6 KB | 50 lines | [TEXT/R*ch] |
- <!--
- the variables with names containing capitol letters, IE 'FormName', are variables
- that sould be edited to reflect the project you are adapting this template to.
- -->
-
- <!-- read the contents of a form into Flex-Able. These contents are now named "FormName" -->
- <:set FormName <:read_form>>
-
- <!-- require particular fields to be filled out before processing the form -->
- <:require FormName["Field1"] FormName["Field2"] FormName["Field3"] >
-
- <!-- echo the contents of your form onto the response page -->
- <ul>
- <:foreach name value form>
- <:echo "<b>" name "</b>:" value "<br>">
- <:/foreach>
- </ul>
- <P>
-
- <!-- save the data from three field variables in the form to a text file
- (be sure to rename the field names to reflect your form field names) -->
- <:save_data "/Savedir/Subsavedir/Filename.ext" FormName["Field1"] FormName["Field2"] FormName["Field3"]>
-
- <!-- save_custom to create a custom file with the contents of the field
- variables from your form -->
- <:set CustomFile "/Savedir/Subsavedir/Filename.html">
- <:save_custom CustomFile>
- <html><head><title>RESPONSE TITLE</title></head>
- <body>
- RESPONSE HTML GOES HERE
- </body></html>
- <:/save_custom>
-
- <!-- use make_unique_file to create a custom, uniquely named file with the contents of the field
- variables from your form -->
- <:set CustomFile <:make_unique_file "/FADocs/MyTestFiles/Comments.html">>
- <:save_custom CustomFile>
- <html><head><title>RESPONSE TITLE</title></head>
- <body>
- RESPONSE HTML GOES HERE
- </body></html>
- <:/save_custom>
-
- <!-- echo the URL of the newly cxreated and/or appended file -->
- <:echo <:file_uri CustomFile>>
-
-
-
-
-